KERNELDIR  := /home/alientek/linux/linux
CURRENTDIR := $(shell pwd)

obj-m := newcharled.o
PHONY += clean clean_modules

build:kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENTDIR) modules
clean_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENTDIR) clean

leddevapp:leddevapp.c
	arm-linux-gnueabihf-gcc -o $@ $^
clean:
	rm -rf leddevapp